
<template>
    <div class="spanControl-list" style="width: 100%;margin-left: 0!important;">
        <el-card class="box-card card-head" style="margin: 0px; width: 100%; min-height: 99%">
            <div slot="header" class="clearfix">
                <span>查看物流单</span>
            </div>

            <div class="text item">
                <el-form label-position="left" inline class="display-form">
                        <!--<el-form-item label="标识">-->
                            <!--<span>{{ logistics.EId }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="名称">-->
                            <!--<span>{{ logistics.name }}</span>-->
                        <!--</el-form-item>-->
                        <el-form-item label="物流单号">
                            <span>{{ logistics.logisticsNumber }}</span>
                        </el-form-item>
                        <el-form-item label="订单编号">
                            <span>{{ logistics.orderNumber }}</span>
                        </el-form-item>
                        <!--<el-form-item label="订单">-->
                            <!--<span>{{ logistics.orderId }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="订单">-->
                            <!--<span>{{ logistics.orderName }}</span>-->
                        <!--</el-form-item>-->
                        <el-form-item label="原金额">
                            <span>{{ logistics.payFor }}</span>
                        </el-form-item>
                        <el-form-item label="补贴金额">
                            <span>{{ logistics.subsidies }}</span>
                        </el-form-item>
                        <el-form-item label="最终金额">
                            <span>{{ logistics.needPay }}</span>
                        </el-form-item>
                        <el-form-item label="支付状态">
                            <span>{{ logistics.payStatus }}</span>
                        </el-form-item>
                        <el-form-item label="支付人">
                            <span>{{ logistics.payer }}</span>
                        </el-form-item>
                        <el-form-item label="支付时间">
                            <span>{{ logistics.payTimeOne }}</span>
                        </el-form-item>
                        <el-form-item label="是否付清">
                            <span>{{ logistics.payAll }}</span>
                        </el-form-item>
                        <el-form-item label="货款收缴方式">
                            <span>{{ logistics.payMethod }}</span>
                        </el-form-item>
                        <el-form-item label="货款收缴时间">
                            <span>{{ logistics.payTime }}</span>
                        </el-form-item>
                        <el-form-item label="物流路线">
                            <span>{{ logistics.routeName }}</span>
                        </el-form-item>
                        <el-form-item label="物流路线">
                            <span>{{ logistics.routeId }}</span>
                        </el-form-item>
                        <el-form-item label="发货时间">
                            <span>{{ logistics.deliveryTime }}</span>
                        </el-form-item>
                        <el-form-item label="发货地址">
                            <span>{{ logistics.deliveryAddress }}</span>
                        </el-form-item>
                        <el-form-item label="收货地址">
                            <span>{{ logistics.receiptAddress }}</span>
                        </el-form-item>
                        <el-form-item label="商家">
                            <span>{{ logistics.businessId }}</span>
                        </el-form-item>
                        <el-form-item label="商家">
                            <span>{{ logistics.businessName }}</span>
                        </el-form-item>
                        <el-form-item label="用户">
                            <span>{{ logistics.employeeName }}</span>
                        </el-form-item>
                        <!--<el-form-item label="用户">-->
                            <!--<span>{{ logistics.employeeId }}</span>-->
                        <!--</el-form-item>-->
                        <el-form-item label="当前节点">
                            <span>{{ logistics.currentNode }}</span>
                        </el-form-item>
                        <el-form-item label="当前状态">
                            <span>{{ logistics.currentStatus }}</span>
                        </el-form-item>
                        <!--<el-form-item label="备注">-->
                            <!--<span>{{ logistics.remark }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="创建人">-->
                            <!--<span>{{ logistics.createId }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="创建时间">-->
                            <!--<span>{{ logistics.createDatetime }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="修改人">-->
                            <!--<span>{{ logistics.updateId }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="修改时间">-->
                            <!--<span>{{ logistics.updateDatetime }}</span>-->
                        <!--</el-form-item>-->
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import {LogisticsService} from './LogisticsService';

export default {
    components: {
    },
    data() {
        return {
            logistics:{},
        }
    },
    methods: {
        findLogisticsForView(logisticsId)//查找物流单
        {
            LogisticsService.findLogisticsForView(logisticsId).then((resp) => {
                this.logistics = resp.data;
        }).catch((error) => {
            this.$message({
            type: 'error',
            message: '查询物流单出错'
        })
        })
        },
    },
    created() {
        const logisticsId = this.$route.params.logisticsId;
        this.findLogisticsForView(logisticsId);
    },
}

</script>
<style scoped lang="scss">

</style>
